[INFO] cloning repository https://github.com/frhanjav/learn-rust-cli
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/frhanjav/learn-rust-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrhanjav%2Flearn-rust-cli", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrhanjav%2Flearn-rust-cli'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a88b49a13bf38db103455e504eb872fcf6f10fce
[INFO] fixing frhanjav/learn-rust-cli against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrhanjav%2Flearn-rust-cli" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/frhanjav/learn-rust-cli
[INFO] finished tweaking git repo https://github.com/frhanjav/learn-rust-cli
[INFO] tweaked toml for git repo https://github.com/frhanjav/learn-rust-cli written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/frhanjav/learn-rust-cli on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/frhanjav/learn-rust-cli already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] ed39e971a5c782f41be30fb3b03ac49e2ae7de8deac29319abe83c0a4ceb1596
[INFO] running `Command { std: "docker" "start" "ed39e971a5c782f41be30fb3b03ac49e2ae7de8deac29319abe83c0a4ceb1596", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ed39e971a5c782f41be30fb3b03ac49e2ae7de8deac29319abe83c0a4ceb1596" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ed39e971a5c782f41be30fb3b03ac49e2ae7de8deac29319abe83c0a4ceb1596", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ed39e971a5c782f41be30fb3b03ac49e2ae7de8deac29319abe83c0a4ceb1596" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking minigrep v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:31:32
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn search<'a>(query: &str, contents{}: &'a str) -> Vec<&'a str> {
[INFO] [stdout]    |                                ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: the binding `contents` is available in a different scope in the same function
[INFO] [stdout]   --> src/lib.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let contents = fs::read_to_string(config.file_path)?;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:32:17
[INFO] [stdout]    |
[INFO] [stdout] 32 |     for line in contents.lines() {
[INFO] [stdout]    |                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 31 |   pub fn search<'a>(query: &str, contents{}: &'a str) -> Vec<&'a str> {
[INFO] [stdout]    |                                                          ------------ expected `Vec<&'a str>` because of return type
[INFO] [stdout] 32 | /     for line in contents.lines() {
[INFO] [stdout] 33 | |
[INFO] [stdout] 34 | |     }
[INFO] [stdout]    | |_____^ expected `Vec<&str>`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<&'a str>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: `for` loops evaluate to unit type `()`
[INFO] [stdout] help: consider returning a value here
[INFO] [stdout]    |
[INFO] [stdout] 34 ~     }
[INFO] [stdout] 35 +     /* `Vec<&'a str>` value */
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0422, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `minigrep` (lib) due to 3 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:31:32
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn search<'a>(query: &str, contents{}: &'a str) -> Vec<&'a str> {
[INFO] [stdout]    |                                ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: the binding `contents` is available in a different scope in the same function
[INFO] [stdout]   --> src/lib.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let contents = fs::read_to_string(config.file_path)?;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:32:17
[INFO] [stdout]    |
[INFO] [stdout] 32 |     for line in contents.lines() {
[INFO] [stdout]    |                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 31 |   pub fn search<'a>(query: &str, contents{}: &'a str) -> Vec<&'a str> {
[INFO] [stdout]    |                                                          ------------ expected `Vec<&'a str>` because of return type
[INFO] [stdout] 32 | /     for line in contents.lines() {
[INFO] [stdout] 33 | |
[INFO] [stdout] 34 | |     }
[INFO] [stdout]    | |_____^ expected `Vec<&str>`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<&'a str>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: `for` loops evaluate to unit type `()`
[INFO] [stdout] help: consider returning a value here
[INFO] [stdout]    |
[INFO] [stdout] 34 ~     }
[INFO] [stdout] 35 +     /* `Vec<&'a str>` value */
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0422, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `minigrep` (lib test) due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "ed39e971a5c782f41be30fb3b03ac49e2ae7de8deac29319abe83c0a4ceb1596", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ed39e971a5c782f41be30fb3b03ac49e2ae7de8deac29319abe83c0a4ceb1596", kill_on_drop: false }`
[INFO] [stdout] ed39e971a5c782f41be30fb3b03ac49e2ae7de8deac29319abe83c0a4ceb1596
